home *** CD-ROM | disk | FTP | other *** search
- <!-------------------------------------------------------------------------------------------------
- Copyright by Kofax Image Products
- -------------------------------------------------------------------------------------------------->
- <%@ LANGUAGE = VBScript %>
- <%
- Response.Expires = 60
- Response.Expiresabsolute = Now() - 1
- Response.AddHeader "pragma","no-cache"
- Response.AddHeader "cache-control","private"
- Response.CacheControl = "no-cache"
- '---------------------------------------------------------------------------------------------------
- 'Checking browser
- '---------------------------------------------------------------------------------------------------
- dim sHTTPUserAgent
- sHTTPUserAgent=LCase(Request.ServerVariables("HTTP_USER_AGENT"))
- if (InStr(sHTTPUserAgent,"msie")>0) then
- if ((InStr(sHTTPUserAgent,"msie 3")>0) OR (InStr(sHTTPUserAgent,"msie 4")>0)) then
- Response.Redirect("Error.asp")
- else
- if (InStr(sHTTPUserAgent,"msie 5.0")>0) then
- if (InStr(sHTTPUserAgent,"msie 5.00")>0) then
- Response.Redirect("Error.asp")
- end if
- end if
- end if
- else
- Response.Redirect("Error.asp")
- end if
-
- '---------------------------------------------------------------------------------------------------
- 'Getting local strings
- '--------------------------------------------------------------------------------------------------
- dim oConn,oRs,i,sFilePath,sLangTable
- dim display(2)
- on error resume next
- set oConn = Server.CreateObject("ADODB.Connection")
- sFilePath=Server.MapPath("csuiweb.mdb")
-
- oConn.Open("Driver={Microsoft Access Driver (*.mdb)};DBQ=" & sFilePath & ";")
- if err then
- set oConn=nothing
- err.clear
- Response.Redirect("Error.asp?Err=1")
- end if
- sLangTable=mid(Request.ServerVariables("HTTP_ACCEPT_LANGUAGE"),1,2)
- if trim("" & sLangTable)="" then
- sLangTable="En"
- end if
- Set oRs=oConn.Execute("SELECT * FROM " & sLangTable & " WHERE Id=0")
- if (err and (Err.Number=-2147217865)) then
- err.Clear
- sLangTable="En"
- Set oRs=oConn.Execute("SELECT * FROM " & sLangTable & " WHERE Id=0")
- end if
- Response.Write("<META HTTP-EQUIV='CONTENT-LANGUAGE' CONTENT='" & oRS("Value") & "'>")
- Set oRs=oConn.Execute("SELECT * FROM " & sLangTable & " WHERE Id Between 1 AND 3")
- for i=0 to 2
- display(i)=oRs("Value")
- oRs.MoveNext
- next
-
- oRs.Close
- oConn.Close
- if err then
- err.clear
- Response.Redirect("Error.asp?Err=1")
- end if
- %>
- <HTML>
- <HEAD>
- <TITLE><%=display(0)%> <%=display(2)%></TITLE>
- <link rel="STYLESHEET" type="text/css" href="coversheet.css">
- <script language="JavaScript">
- var sReturnData="";
- var sTitle="";
- var sFlag="";
- var oDialog="Utility.asp?Nocache=<%=server.URLencode(now())%>";
- var UtilWindow;
- var bStatus = false;
- var bAboutOpened=false;
- var bHelpOpened=false;
- var AboutWindow,HelpWindow;
- //Updating data from package window and submitting data to coversheet window
-
-
- function Update()
- {
- Test.innerHTML=sTitle;
- Flag.innerHTML=sFlag;
- InputData.innerHTML=sReturnData;
- document.frmData.submit();
- }
-
-
- //opening package window and setting focus to it
- function LoadUtility()
- {
- var wtop,wleft;
- ResizeWindow();
- wtop= window.screenTop + 75;
- wleft= window.screenLeft + 85;
- // param="width=280, height=275, left=" + wleft + ", top=" + wtop + ", toolbar=no, menubar=no, location=no, directories=no,resizable=no,fullscreen=0,minimize=no,maximize=no";
- // UtilWindow=window.open('Utility.asp', "myWindowOne", param);
- // if (bDialogStatus==false)
- if (bStatus==false)
- {
- UtilWindow=window.showModelessDialog(oDialog, window, "status:no;center:no;help:no;minimize:no;maximize:no;border:thin;statusbar:no;dialogWidth:280px;dialogHeight:275px;dialogTop=" + wtop + "px;dialogLeft=" + wleft + "px;");
- UtilWindow.focus();
- bStatus=true;
- }
- else
- {
- if (UtilWindow.closed)
- {
- UtilWindow=window.showModelessDialog(oDialog, window, "status:no;center:no;help:no;minimize:no;maximize:no;border:thin;statusbar:no;dialogWidth:280px;dialogHeight:275px;dialogTop=" + wtop + "px;dialogLeft=" + wleft + "px;");
- UtilWindow.focus();
- }
- else
- {
- UtilWindow.Rechange(window.screenLeft + 85,window.screenTop + 75);
- UtilWindow.focus();
- }
- }
- }
-
- //resizing the window and relocating the package window
- function ResizeWindow()
- {
-
- var dx,dy;
- try
- {
-
- dx = (document.body.clientWidth < 400) ? (400 - document.body.clientWidth) : 0;
- dy = (document.body.clientHeight < 420) ? (420 - document.body.clientHeight) : 0;
- window.resizeBy(dx,dy);
- UtilWindow.Rechange(window.screenLeft + 85,window.screenTop + 75);
- UtilWindow.focus();
- }
- catch (e)
- {
- }
-
- }
-
- //opening and showing the about window
- function ShowAbout()
- {
- if (bAboutOpened==false)
- {
- AboutWindow=window.open("About.asp", "AboutWindow", "width=400, height=250, left=375, top=175, toolbar=no, menubar=no, location=no, directories=no,resizable=no");
- bAboutOpened=true;
- }
- else
- {
- if (AboutWindow.closed)
- {
- AboutWindow=window.open("About.asp", "AboutWindow", "width=400, height=250, left=375, top=175, toolbar=no, menubar=no, location=no, directories=no,resizable=no");
- }
- }
- AboutWindow.focus();
- }
- //opening and showing the about window
- function ShowHelp()
- {
- if (bHelpOpened==false)
- {
- HelpWindow=window.open("WebHelp/index.htm", "HelpWindow");
- bHelpOpened=true;
- }
- else
- {
- if (HelpWindow.closed)
- {
- HelpWindow=window.open("WebHelp/index.htm", "HelpWindow");
- }
- }
- HelpWindow.focus();
- }
- //closing about and help windows
-
- function UnloadAll()
- {
-
- if (bAboutOpened)
- {
- if (!AboutWindow.closed)
- {
- AboutWindow.close();
- }
- }
- if (bHelpOpened)
- {
- if (!HelpWindow.closed)
- {
- HelpWindow.close();
- }
- }
-
- }
-
- </script>
-
- </head>
-
- <body onload="LoadUtility();" onclick="LoadUtility();" onUnload="UnloadAll();" onresize="ResizeWindow();">
- <!--- <form name="frmData" action='CoverSheet.asp?lang=<%=Request.QueryString("lang")%>' method="post" > --->
- <form name="frmData" action="CoverSheet.asp" method="post">
- <center>
- <table width="90%">
- <tr>
- <td height="200" width="50%"> </td>
- <td height="200" width="50%"> </td>
- </tr>
- <tr>
- <td height="60%" width="50%"></td>
- <td height="60%" width="50%"><image src="images/splashBkgd.gif" ALT='<%=display(0)%>'>
- </td>
- </tr>
- <tr>
- <td height="20%" width="50%"></td>
- <td height="20%" width="50%">
- <div id="Test" class="processing"></div>
- <div id="Flag"><input name="Submited" value="False" type="Hidden"></div>
- <div id="InputData" style="visibility:hidden"></div>
- <!--- <IFRAME NAME="content_frame" width="488" height="244" SRC="Utility.asp" frameborder="1"></IFRAME> --->
- </td>
- </tr>
- </table>
- </center>
- </form>
- </body>
- </html>
-